<h1>Showing employee</h1>

<p>
  <b>Name:</b>
  <%=h @employee.name %>
</p>

<p>
  <b>Surname:</b>
  <%=h @employee.surname %>
</p>

<p>
  <b>Address:</b>
  <%=h @employee.address %>
</p>

<p>
  <b>Login:</b>
  <%=h @employee.login %>
</p>

<p>
  <b>Warehouse:</b>
  <td><%= link_to @employee.warehouse.name, @employee.warehouse %></td>
</p>


<%= link_to 'Edit', edit_employee_path(@employee) %> |
<%= link_to 'Change password', :controller => "employees", :action => "passwordChange", :id => @employee %> |
<%= link_to 'Delete', @employee, :confirm => 'Are you sure?', :method => :delete %> |
<%= link_to 'List', employees_path %>